home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Milan_1991 / Devcon91.4 / AppShell / Examples / Clipboard / dynamicimages.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-01  |  1.2 KB  |  42 lines

  1. /*
  2. **    $Filename: dynamicimages.h $
  3. **    $Release: 1.4 $
  4. **
  5. **    definitions for use with dynamicimages
  6. **
  7. **    (C) Copyright 1989 Commodore-Amiga, Inc.
  8. **        All Rights Reserved Worldwide
  9. */
  10.  
  11. #define AREA_SIZE 200
  12.  
  13. struct DynamicImage
  14. {
  15.     struct Image di_image;    /* Image structure to draw/display */
  16.     struct BitMap di_bmap;    /* Image's BitMap */
  17.     struct RastPort di_rport;    /* Image's RastPort */
  18.     ULONG di_size;        /* Size of ImageData */
  19.  
  20.     struct TmpRas di_tmpras;    /* Flood Fill TmpRas */
  21.     UBYTE *di_workspace;    /* Flood Fill workspace */
  22.  
  23.     struct AreaInfo di_area;    /* Area Fill AreaInfo */
  24.     WORD di_array[AREA_SIZE];    /* Area Fill workspace */
  25.  
  26.     struct Layer_Info *di_li;    /* Layer_Info for layer manipulations */
  27.     struct Layer *di_layer;    /* Layer structure */
  28.     ULONG Flags;        /* Application Flags -- see defines */
  29. };
  30.  
  31. /* Application Flags.
  32.  * Used to indicate what parts of the DynamicImage need
  33.  * to be initialized.
  34.  */
  35. #define DI_FILL        (1L<<0)
  36. #define    DI_LAYER    (1L<<1)
  37.  
  38. /* DynamicImages.c: Function Prototypes */
  39. VOID InitDynamicImage (struct DynamicImage *, USHORT, USHORT, USHORT);
  40. BOOL AllocDynamicImage (struct DynamicImage *);
  41. VOID FreeDynamicImage (struct DynamicImage *);
  42.